//
//  XFXReadTableViewCell.m
//  XFXnews
//
//  Created by dllo on 16/1/27.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "XFXReadTableViewCell.h"
#import "UIImageView+WebCache.h"

@interface XFXReadTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *myImageView;

@property (weak, nonatomic) IBOutlet UILabel *XFXLabelOne;

@property (weak, nonatomic) IBOutlet UILabel *nickLabel;

@property (weak, nonatomic) IBOutlet UILabel *XFXLabelThree;

@end
@implementation XFXReadTableViewCell


- (void)setReadModel:(XFXNewsHeadLineModel *)readModel{
    
    _readModel = readModel;
    
    self.XFXLabelOne.text = _readModel.title;
    self.XFXLabelOne.font = [UIFont systemFontOfSize:13.0];
    self.XFXLabelOne.numberOfLines = 0;
    self.nickLabel.text = _readModel.source;
    self.nickLabel.font = [UIFont systemFontOfSize:13.0];
    
    NSURL *url = [NSURL URLWithString:_readModel.img];
    [self.myImageView sd_setImageWithURL:url placeholderImage:nil];
    
}



@end
